package com.hzhjhh.view.manageView.menus;

import javax.swing.JMenuItem;

/**
 * 菜单栏初始化-文件-退出
 * @author 12083
 *
 */
public class MExit {

	public static JMenuItem init() {
		JMenuItem exitItem = new JMenuItem();
		exitItem.setText("退出");
		
		exitItem.addActionListener(event -> {
			System.exit(0);
		});
		return exitItem;
	}
}
